package com.atguigu.guli.service.trade.feign;

import com.atguigu.guli.service.base.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient(name = "service-edu")
public interface EduFeignClient {
    @GetMapping("api/edu/course/getCourseDTO/{courseId}")
     R getCourseDTO(@PathVariable String courseId);

    //远程调用更新课程销量
    @PutMapping("api/edu/course/updateCourseSale/{courseId}")
    public R updateCourseSale(@PathVariable String courseId);
}
